package com.zjj.day3.employeeTest1;

/**
 * @author zhoujunjie
 * @desc TODO
 * @date 2025/4/21
 */
public class Test {
    public static void main(String[] args) {
        Employee employee1 = new Employee("张三", 8000);
        System.out.println("涨薪前，" + employee1.getName() + " 的薪资为：" + employee1.getSalary());
        EmployeeUtil.raise(employee1);
        System.out.println("涨薪后，" + employee1.getName() + " 的薪资为：" + employee1.getSalary());

        Employee employee2 = new Employee("李四", 12000);
        System.out.println("涨薪前，" + employee2.getName() + " 的薪资为：" + employee2.getSalary());
        EmployeeUtil.raise(employee2);
        System.out.println("涨薪后，" + employee2.getName() + " 的薪资为：" + employee2.getSalary());
    }
}